import sys

#read current module name sys.modules[__name__]

def save(inst, bk):
    method = "save_"
    try:
        method = getattr( sys.modules[bk] , method+inst.__class__.__name__)
        return method(inst)
    except:
        return True
    
def drop(inst, bk):
    method = "drop_"
    try:
        method = getattr( sys.modules[bk] ,method+inst.__class__.__name__)
        return method(inst)
    except:
        return True
    
